package com.cn.mmd.service;

import com.cn.mmd.mapper.GradeMapper;
import com.cn.mmd.model.Grade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/7/13 0013.
 */
@Service("gradeService")
public class GradeServiceImpl implements GradeService {

    @Autowired
    private GradeMapper gradeMapper;

    @Override
    public List<Grade> selectByCouIdStuIdTeaId(Grade grade) {
        return gradeMapper.selectByCouIdStuIdTeaId(grade);
    }

    @Override
    public Grade selectByCouIdStuIdTeaIdo(Grade grade) {
        return gradeMapper.selectByCouIdStuIdTeaIdo(grade);
    }

    @Override
    public int insertSelective(Grade record) {
        return gradeMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(Grade record) {
        return gradeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public Grade selectByStuId(Grade grade) {
        return gradeMapper.selectByStuId(grade);
    }

    @Override
    public Grade selectByPrimaryKey(Integer gradeid) {
        return gradeMapper.selectByPrimaryKey(gradeid);
    }
}
